package com.ikaros.entity;

import lombok.Data;

import javax.persistence.*;
import java.math.BigDecimal;
import java.sql.Timestamp;

/**
 * Created by Ikaros on 2017/9/18.
 */
@Entity
@Data
@Table(name = "order_detail")
public class OrderDetail {
    @Id
    private String detailId;
    /**
     * 订单id
     */
    private String orderId;
    /**
     * 订单id.
     */
    private String productId;
    /**
     * 商品名称.
     */
    private String productName;
    /**
     * 商品单价.
     */
    private BigDecimal productPrice;
    /**
     * 商品数量.
     */
    private int productQuantity;
    /**
     * 商品小图.
     */
    private String productIcon;

    /*private Timestamp createTime;
    private Timestamp updateTime;*/
}
